#include "common.h"
#include "commandcontroller.h"
#include "controller.h"
#include "console.h"
#include "cppvi.h"
#include "document.h"
#include "insertcontroller.h"
#include "linecontroller.h"
#include "filerw.h"
#include "argument.h"
#include "statusbar.h"
#include "help.h"

int main(int argc, char *argv[])
{
	if (argc == 2)
	{
		if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0)
		{
			Help::showUsage();
			return 0;
		}
		else if(strcmp(argv[1], "--version") == 0)
		{
			Help::show(versionString);
			return 0;
		}
	}
	CppVi *cppvi = CppVi::getInstance();
	cppvi->start(argc, argv);

	//Argument a(argc, argv);
	return 0;
}
